<div data-role="content" data-scroll="y" height="80%" data-theme="a">
<div data-iscroll="scroller">

<ul data-role="listview" data-filter="true" data-inset="true">
	<li data-role="list-divider" data-theme="a">Notification</li>	
	<?php $this->load->model('user_model');?>
		
	<?php if (isset($rows)):foreach($rows as $r) :?>
		
		
		<li data-icon="false">
		
		<?php if($r->notice_type==1): ?>
		<a  href="<?=site_url('feed_controller/to_apply?helloID=').$r->helloid ;?>" >
		<p><img class="top" width=20px height=20px src="<?=base_url('themes/resources/notification.png');?>"/>
		<b><?=$r->sender_name?></b></br>
		<?=$r->sender_name?> has applied your hello <br />
		<?=$r->hello_title?> </p></a>
		
		<?php elseif($r->notice_type==2): ?>
		<a data-rel="dialog" href="<?=site_url('feed_controller/to_apply?helloID=').$r->helloid; ?>" >
		<p><img width=20px height=20px src="<?=base_url('themes/resources/notification.png');?>"/>
		<b> <?=$r->sender_name?></b></br>
		<?=$r->sender_name?> confirmed your hello </br>
		<?=$r->hello_title?> </p></a>

				
		<?php elseif($r->notice_type==3): ?>
		
		<a href="<?=site_url('messege_controller/to_send_messege?receiverid='.(string)($r->senderid)) ;?>" >
		<p><img class="top" width=20px height=20px src="<?=base_url('themes/resources/messages.png');?>" />
		<b><?=$r->sender_name?></b></br>
		<?=$r->sender_name?> send you a message </p></a>
		
		<?php elseif($r->notice_type==4): ?>
		<p><img class="top" width=20px height=20px src="<?=base_url('themes/resources/rss.png');?>" />
		<b><?=$r->sender_name?></b></br>
		<?=$r->sender_name?> has add you as a friend </p>
		
		
		<?php 	if(!$r->is_read)
        	$r->is_read=true;
        
         ?>
		
		<? endif; ?>
		</li>
		
	
		
		<?php endforeach;
		else :?>
		<h4>There is no notification now!</h4>
		<?php endif; ?>
		

</ul>	
</div>
</div>